<%@ page import="com.google.appengine.api.users.User" %>
<%@ page import="com.google.appengine.api.users.UserService" %>
<%@ page import="com.google.appengine.api.users.UserServiceFactory" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8">
	<title>PJ Poc</title>
	<script
		src='http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js'
		type='text/javascript'>
	</script>
	<script
		src='https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js'
		type='text/javascript'>
	</script>
	<script src='js/livraison.js' type='text/javascript'></script>
	<script src='js/jquery.ui.datepicker-fr.js' type='text/javascript'></script>
	<link href='css/style.css' rel='stylesheet' type='text/css' />
	<link href='css/icone.css' rel='stylesheet' type='text/css' />
	<link href='css/ui-lightness/jquery-ui-1.8.16.custom.css' rel='stylesheet' type='text/css' />
</head>

<body>
	<div id=user>
	<%
  		UserService userService = UserServiceFactory.getUserService();
  		if (!userService.isUserLoggedIn()) {
	%>
   			<a href="<%=userService.createLoginURL("/")%>">Connection</a>
	<% } else { %>
	   		<%= userService.getCurrentUser().getNickname() %>
	     	(<a href="<%=userService.createLogoutURL("/")%>">Deconnection</a>)
	<%	} 	%>
	</div>
	<div id="global">
		<div id="dev">
			<ul></ul>
		</div>
		<div id="info">
			<h1></h1>
			Derniere livraison :<input maxlength="10" />
		</div>
	</div>
	<div id="ajout">
	</div>
	<ul id="log"></ul>
</body>
</html>
